package com.cn.zengzeng.spbzengzeng.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @Author: zhangzengzeng
 * @Date: 2021/6/4 11:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPo implements Serializable {
    private static final long serialVersionUID = -9060386078919419230L;
    /**
     * id
     */
    private Integer id;

    /**
     * account
     */
    @NotBlank(message = "账户不能为空")
    @Valid
    private String account;

    /**
     * password
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * status
     */
    private Integer status;

    /**
     * name
     */
    @NotBlank(message = "昵称不能为空")
    private String name;

    /**
     * mobile
     */
    private String mobile;

    /**
     * sex
     */
    @NotBlank(message = "性别不能为空")
    private String sex;

    /**
     * createtime
     */
    private Date createtime;

    /**
     * email
     */
    @NotBlank(message = "email不能为空")
    private String email;

    /**
     * roles
     */
    private String level;
    /**
     * lastSync
     */
    private Date lastsync ;


}